package com.zjj.lbw.service.api.order.feign;

import com.zjj.lbw.common.bean.R;
import com.zjj.lbw.config.FeignConfig;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhanglei.zjj
 * @description 微服务-rpc-feign客户端
 * @date 2023/7/6 22:01
 */
@FeignClient(value = "feign-provider", path = "/order"/*, configuration = FeignConfig.class*/)
public interface RpcFeignClient {
//    @RequestMapping("/findOrderByUserId/{userId}")
    @RequestLine("GET /findOrderByUserId/{userId}")
    public R findOrderByUserId(/*@PathVariable*/@Param("userId") Integer userId);
}
